package com.tom.zojbackendserviceclient.service;


import com.tom.zojbackendmodel.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 判题服务
 */
//todo:可优化为返回降级服务
@FeignClient(name = "zoj-backend-judge-service",path = "api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 判题
     * @param questionSubmitId
     * @return
     */
    @GetMapping("/doJudge/id")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") long questionSubmitId);
}
